// START SNIPPET: EquipmentDaoHibernate
package nothing.dao.hibernate;

import nothing.model.Equipment;
import nothing.dao.EquipmentDao;
import org.appfuse.dao.hibernate.GenericDaoHibernate;

import java.util.List;

public class EquipmentDaoHibernate extends GenericDaoHibernate<Equipment, Long> implements EquipmentDao {

    public EquipmentDaoHibernate() {
        super(Equipment.class);
    }

    @SuppressWarnings("unchecked")
    public List<Equipment> findByName(String name) {
        return getHibernateTemplate().find("from Equipment where name=?", name);
    }
}
// START SNIPPET: EquipmentDaoHibernate

